package com.snoweagle.core;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(LogProtperties.class)
public class LogConfig {
    @Bean
    @ConditionalOnMissingBean(value = LogService.class)
    public LogService logService(){
        return new DefaultLogService();
    }

}
